home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 412_01 / src / bisear / tbibread.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-28  |  552 b   |  29 lines

  1. #include "tree.h"
  2.  
  3. /*                      BIBREADTH_TREE_
  4.  
  5.     The constructor passes the start node, goal node and the number
  6.     of operators to BISEARCH_.
  7.  
  8. */
  9.  
  10. BIBREADTH_TREE_::BIBREADTH_TREE_(NODE_ *start, NODE_ *goal, int op)
  11.     :BISEARCH_(start, goal, op)
  12. {
  13. }
  14.  
  15.  
  16.  
  17. /*                      ADD
  18.  
  19.     Adds a node to one of the search graphs, without checking if it's
  20.     already in the graph.
  21.  
  22. */
  23.  
  24. int BIBREADTH_TREE_::add(SORTEDLIST_ *x_open, SORTEDLIST_ *, NODE_ *succ)
  25. {
  26.     x_open->addtotail(*succ);
  27.     return(1);
  28. }
  29.